//操作数据库
let db = require('../db/index')
//获取数据
exports.get = (req,res)=>{
    var sql = 'select * from T_Stu'
    db.query(sql,[req.query.perno,req.query.pername,req.query.persex,req.query.floorno,req.query.dormno,
        req.query.phonenum,req.query.department,req.query.peofessional,req.query.classnum],
        (err,data)=>{
        if(err){
            return res.send('错误'+err.message)
        }
        res.send(data)
    })
}



